
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/* To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Dianita
 */

public class PruebaBD {

    EntityManager em;
    EntityManagerFactory emf;

    @Before
    public void setUp() {
        emf = Persistence.createEntityManagerFactory("RelojBiometricoPU");        
        em = emf.createEntityManager();
    }

    @Test
    public void provarUP() {
        assertNotNull(emf);
    }

    @After
    public void tearDown() {
        emf.close();
        em.close();
    }
}


